package com.lagou.io;

import java.io.InputStream;


public class Resources {
    //加载配置文件，返回输入字节流,存储在内存中
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
